package edu.uis.project.frankszoo.model.event;

import java.util.EventObject;

/**
 * This class extends the EventObject and represents the RoundStartedEvent
 * 
 */
public class RoundStartedEvent extends EventObject {

	private static final long serialVersionUID = -2298072974289228481L;

	Integer handNo;// Serial No of the hand
	Integer roundNo;// Serial No of the round
	String startingPlayerID;// ID of the player starting the round

	/**
	 * This is the constructor for RoundStartedEvent
	 * 
	 * @param source
	 *            component that originated the event
	 * @param handNo
	 *            Serial No of the hand
	 * @param roundNo
	 *            Serial No of the round
	 * @param startingPlayerID
	 *            ID of the player starting the round
	 */
	public RoundStartedEvent(Object source, Integer handNo, Integer roundNo, String startingPlayerID) {
		super(source);
		this.handNo = handNo;
		this.roundNo = roundNo;
		this.startingPlayerID = startingPlayerID;

	}

	/**
	 * Returns the serial no of the hand
	 * 
	 * @return handNo Serial No of the hand
	 */
	public Integer getHandNo() {
		return handNo;
	}

	/**
	 * Returns the serial no of the round
	 * 
	 * @return handNo Serial No of the round
	 */
	public Integer getRoundNo() {
		return roundNo;
	}

	/**
	 * Returns the ID of the starting the round
	 * 
	 * @return playerID ID of the player starting the round
	 */
	public String getStartingPlayerID() {
		return startingPlayerID;
	}

}
